/**
 * Description:
 * Class Name:CommandTest
 * Date:2022/1/30 17:37
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第6章_面向对象_下._6_6_接口_经Java9改进;

public class CommandTest {
    public static void main(String[] args) {
        var pa = new ProcessArray();
        int[] target = new int[]{3,-4,6,7};
        // 第一次处理数组，具体处理行为取决于PrintCommand，稍等，后面会补充这个类
        pa.process(target, new PrintCommand());
        System.out.println("-------------");
        pa.process(target, new SquareCommand());
    }
}
